import request from '@/utils/request'

// 查询震动监测设备列表
export function listQuakeClient(query) {
  return request({
    url: '/device/quakeClient/list',
    method: 'get',
    params: query
  })
}

// 查询震动监测设备详细
export function getQuakeClient(id) {
  return request({
    url: '/device/quakeClient/' + id,
    method: 'get'
  })
}

// 新增震动监测设备
export function addQuakeClient(data) {
  return request({
    url: '/device/quakeClient',
    method: 'post',
    data: data
  })
}

// 修改震动监测设备
export function updateQuakeClient(data) {
  return request({
    url: '/device/quakeClient',
    method: 'put',
    data: data
  })
}

// 删除震动监测设备
export function delQuakeClient(id) {
  return request({
    url: '/device/quakeClient/' + id,
    method: 'delete'
  })
}
